<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<!-- blueprint CSS framework -->
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>ui/screen.css" media="screen, projection" />
<!--<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>ui/print.css" media="print" />-->
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>ui/ie.css" media="screen, projection" />
<![endif]-->

<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/jquery-ui.css" />
<link rel="stylesheet" href="<?php echo base_url(); ?>ui/chosen/chosen.min.css" />
<link rel="stylesheet" href="<?php echo base_url(); ?>ui/magnific-popup/magnific-popup.css"> 
<link rel="stylesheet" href="<?php echo base_url(); ?>ui/main.css" />

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="<?php echo base_url(); ?>ui/chosen/chosen.jquery.min.js"></script>
<script src="<?php echo base_url(); ?>ui/fileuploader/ajaxfileupload.js"></script>
<script src="<?php echo base_url(); ?>ui/magnific-popup/jquery.magnific-popup.js"></script>
<script src="<?php echo base_url(); ?>ui/main.js"></script>

<title>捷立信档案管理系统</title>

</head>

<body>
<input type="hidden" id="site_url" value="<?php echo site_url(); ?>" />

<div class="container" id="page">

    <div id="mainmenu">
		<ul>
            
            <?php
                $menus[] = array('label' => '首页', 'class' => 'welcome', 'method' => 'index', 'uri' => '');
                if ($this->session->userdata('uid')) {
                    $menus[] = array('label' => '国内商标', 'class' => 'trademark', 'method' => 'index', 'uri' => 'trademark');
//                    $menus[] = array('label' => '国内专利', 'class' => '', 'method' => '', 'uri' => '');
    //                $menus[] = array('label' => '版权业务', 'class' => '', 'method' => '', 'uri' => '');
                    $menus[] = array('label' => '涉外业务', 'class' => 'foreign', 'method' => 'index', 'uri' => 'foreign');
    //                $menus[] = array('label' => '其他业务', 'class' => '', 'method' => '', 'uri' => ''),
                    $menus[] = array('label' => '人员信息', 'class' => 'user', 'method' => 'index', 'uri' => 'user');
                    $menus[] = array('label' => '申请人资料', 'class' => 'client', 'method' => 'index', 'uri' => 'client');
                    $menus[] = array('label' => '合作所资料', 'class' => 'partner', 'method' => 'index', 'uri' => 'partner');
    //                $menus[] = array('label' => '法律法规', 'class' => '', 'method' => '', 'uri' => '');
    //                $menus[] = array('label' => '业务资料', 'class' => '', 'method' => '', 'uri' => '');
                    $menus[] = array('label' => '个人资料', 'class' => 'user', 'method' => 'view', 'uri' => 'user/view');
                    $menus[] = array('label' => '退出', 'class' => 'welcome', 'method' => 'logout', 'uri' => 'welcome/logout');
                } else {
                    $menus[] = array('label' => '登录', 'class' => 'welcome', 'method' => 'login', 'uri' => 'welcome/login');
                }
                
                foreach ($menus as $key => $menu) {
                    $class = ($this->router->class == $menu['class'] &&
                        $this->router->method == $menu['method']) ? ' class="active"' : '';
                    echo '<li' . $class . '><a href="' . site_url($menu['uri']) . '">' . $menu['label'] . '</a></li>';
                }
            ?>            
        </ul>
    </div><!-- mainmenu -->

    <div id="content">
        
        <h3><?php echo $title; ?></h3>
        <?php if (!empty($sucess_message)): ?>
        <p class="success"><?php echo $sucess_message; ?></p>
        <?php endif; ?>
        <?php if (!empty($error_message)): ?>
        <p class="error"><?php echo $error_message; ?></p>
        <?php endif; ?>
        
        <?php if (isset($operations)): ?>
        <div class="portlet">
            <div class="portlet-decoration">
                <div class="portlet-title">Operations</div>
            </div>
            <div class="portlet-content">
                <ul class="operations">
                    <?php foreach ($operations as $operation): ?>
                    <li><a href="<?php echo site_url($operation['uri']); ?>"><?php echo $operation['label']; ?></a></li>
                    <?php endforeach; ?>
                </ul>
            </div>
        </div>
        <?php endif; ?>

